package com.ssyt.yt1.day20.enumuration;

enum Person {

	MAN("男"), WOMAN("女"), UNKNOW("未知");

	private String sex;

	private Person(String sex) {
		this.sex = sex;
	}

	public String getSex() {
		return sex;
	}
}

/**
 * 
 * 
 * @author Administrator
 *
 */
public class EnumDemo4 {

	public static void main(String[] args) {
		System.out.println(Person.MAN + " -> " + Person.MAN.getSex());
	}
}
